﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Text;
namespace StuEdu.Web.Notify
{
    public partial class Show : Page
    {        
        		public string strid=""; 
		protected void Page_Load(object sender, EventArgs e)
		{
			if (!Page.IsPostBack)
			{
				if (Request.Params["id"] != null && Request.Params["id"].Trim() != "")
				{
					strid = Request.Params["id"];
					int notifyId=(Convert.ToInt32(strid));
					ShowInfo(notifyId);
				}
			}
		}
		
	private void ShowInfo(int notifyId)
	{
		StuEdu.BLL.Notify bll=new StuEdu.BLL.Notify();
		StuEdu.Model.Notify model=bll.GetModel(notifyId);
		this.lblnotifyId.Text=model.notifyId.ToString();
		this.lblnotifyContent.Text=model.notifyContent;
		this.lblnotifyTitle.Text=model.notifyTitle;
		this.lblpersonName.Text=model.personName;
		this.lblnotifyTime.Text=model.notifyTime.ToString();
		this.lblisPush.Text=model.isPush?"是":"否";

	}


    }
}
